package Poker;

import java.util.Scanner;

public class Poker {

	public static void main(String[] args)
	{
		
		System.out.println("Witaj w zuy poker ver.alpha bravo tango");
		
		Scanner kb = new Scanner(System.in);
		String in;
		
		Table table = new Table(2);
		for (int i = 0; i < 4; ++i)
		{
			System.out.print("Dodac gracza? [t\\n]: ");
			in = kb.next();
			if (in.equals("n") || in.equals("N"))
			{
				break;
			}
			else if (in.equals("t") || in.equals("T"))
			{
				String a,b;
				System.out.print("Podaj imie gracza: ");
				a = kb.next();
				while(true)
				{
					System.out.print("Podaj rodzaj gracza(0-human|1-bot): ");
					
					b = kb.next();
					if (b.charAt(0) != '1')
					{
						if (b.charAt(0) == '0')
						{
							break;
						}
					}
					else
					{
						break;
					}
				}
				table.AddPlayer(a, b);
			}
			else
			{
				--i;
				continue;
			}
		}
		
		table.StartRound();
		kb.close();
	}

}
